package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BaseStoreMapper;
import com.ruoyi.base.domain.BaseStore;
import com.ruoyi.base.service.IBaseStoreService;

/**
 * 仓库操作Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-03
 */
@Service
public class BaseStoreServiceImpl implements IBaseStoreService 
{
    @Autowired
    private BaseStoreMapper baseStoreMapper;

    /**
     * 查询仓库操作
     * 
     * @param id 仓库操作主键
     * @return 仓库操作
     */
    @Override
    public BaseStore selectBaseStoreById(Long id)
    {
        return baseStoreMapper.selectBaseStoreById(id);
    }

    /**
     * 查询仓库操作列表
     * 
     * @param baseStore 仓库操作
     * @return 仓库操作
     */
    @Override
    public List<BaseStore> selectBaseStoreList(BaseStore baseStore)
    {
        return baseStoreMapper.selectBaseStoreList(baseStore);
    }

    /**
     * 新增仓库操作
     * 
     * @param baseStore 仓库操作
     * @return 结果
     */
    @Override
    public int insertBaseStore(BaseStore baseStore)
    {
        return baseStoreMapper.insertBaseStore(baseStore);
    }

    /**
     * 修改仓库操作
     * 
     * @param baseStore 仓库操作
     * @return 结果
     */
    @Override
    public int updateBaseStore(BaseStore baseStore)
    {
        return baseStoreMapper.updateBaseStore(baseStore);
    }

    /**
     * 批量删除仓库操作
     * 
     * @param ids 需要删除的仓库操作主键
     * @return 结果
     */
    @Override
    public int deleteBaseStoreByIds(Long[] ids)
    {
        return baseStoreMapper.deleteBaseStoreByIds(ids);
    }

    /**
     * 删除仓库操作信息
     * 
     * @param id 仓库操作主键
     * @return 结果
     */
    @Override
    public int deleteBaseStoreById(Long id)
    {
        return baseStoreMapper.deleteBaseStoreById(id);
    }
}
